package org.itcast.travel.mapper;

import java.util.List;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.itcast.travel.pojo.PlaceQueryParam;
import org.itcast.travel.pojo.Ticket;
import org.itcast.travel.pojo.TicketQueryParam;
import org.itcast.travel.pojo.TicketVO;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
@Component
@Mapper
public interface TicketMapper {
//    int deleteByPrimaryKey(Integer id);
//
//    int insert(Ticket record);
//
//    Ticket selectByPrimaryKey(Integer id);
//
//    List<Ticket> selectAll();
//
//    int updateByPrimaryKey(Ticket record);

    //   @Insert("insert into ticket (place_id, name, price, type, information, count, create_time, update_time) values " +
//           "(#{placeId},#{name},#{price},#{type},@{information},#{count},#{count},#{createTime},#{updateTime}"));
    void save(Ticket ticket);


    void deleteById(List<Integer> ids);

    Ticket getById(Integer id);

    void update(Ticket ticket);

    Page<TicketVO> page(TicketQueryParam ticketQueryParam);
}